
package com.baeldung.rate.app;

//import com.baeldung.rate.ExchangeRate;

import com.baeldung.rate.QuoteManagerLoader;

import java.time.LocalDate;

public class MainApp {
    public static void main(String... args) {
//        ExchangeRate.providers().forEach(provider -> {
//            System.out.println("Retreiving USD quotes from provider :" + provider);
//            List<Quote> quotes = provider.create().getQuotes("USD", LocalDate.now());
//            System.out.println(String.format("%14s%12s|%12s", "", "Ask", "Bid"));
//            System.out.println("----------------------------------------");
//            quotes.forEach(quote -> {
//                System.out.println(quote.toString());
//            });
//        });

        System.out.println(
                QuoteManagerLoader
                .load()
                .getQuotes("ABC", LocalDate.now())
                .toString());
    }
}